package edu.drexel.jrexel2d.input;

import java.util.Random;
import java.util.Set;
import java.util.Map.Entry;

import org.lwjgl.input.Keyboard;



/**
 * @author Chris
 * This class is used for demo purposes to simulate game actions
 */
public class AutoInputMap extends InputMap {
	
	private static int userAction;
	private static int userActionCount;
	private int playerId;
	
	public AutoInputMap( int playerId){
		userAction = 1;
		this.playerId=playerId;
	}

	public GameInput getUserInput()
	{
//		if (userAction == 25)userAction=1;
//		//int playerid=2;
//		
//		
//		switch (userAction) {
//		case 1:
//			for (int i = 0; i < 7; i++) {
//				GameAction action = new GameAction(playerId, CharacterActions.MOVE_RIGHT);
//				gameInput.addGameAction(action);
//			}
//			break;
//		case 5:
//			for (int i = 0; i < 1; i++) {
//				GameAction action = new GameAction(playerId, CharacterActions.MOVE_UP);
//				gameInput.addGameAction(action);
//			}
//			break;
//		case 9:
//			for (int i = 0; i < 5; i++) {
//				GameAction action = new GameAction(playerId, CharacterActions.MOVE_LEFT);
//				gameInput.addGameAction(action);
//			}
//			
//			break;
////		case 13:
////			for (int i = 0; i < 1; i++) {
////				GameAction action = new GameAction(playerId, CharacterActions.MOVE_DOWN);
////				gameInput.addGameAction(action);
////			}
////			
////			break;
//
//		default:
//			break;
//		}
//		userAction++;
		return gameInput;
		
	}
	
}
